interface Inter {
    int num=20;
    void method();
}
class InterImp1 implements Inter{
    @Override
    public void method() {
        System.out.println("InterImpl method");
    }

    public void show(){
        System.out.println("num的值为："+num);
    }
}

public class Test1 {
    public static void main(String[] args) {
        InterImp1 interImp1=new InterImp1();
        interImp1.show();
        interImp1.method();
    }
}